<?php 
$currentPage = null;
if(isset($_REQUEST['p'])) {
	$currentPage = $_REQUEST['p'];
}

?>
<ul class="admin-menu-list">
	<li 
		<?php 
		if ($currentPage !== null 
			&& ($currentPage == 'listcategory.php' || $currentPage == 'editcategory.php'))	: ?>
		
		class="selected"
	
		<?php endif; ?>	
	>
	
	<?php $url = getUrlAdmin('listcategory.php', null); ?>
	
		<a href="<?php echo $url; ?>">Loại sản phẩm</a>
	</li>
	
	<li
		<?php 
		if ($currentPage !== null 
			&& ($currentPage == 'listproduct.php' || $currentPage == 'editproduct.php'))	: ?>
		
		class="selected"
	
		<?php endif; ?>	
	>
	
	<a href="#">Sản phẩm</a></li>
	
	
	<li
		<?php 
		if ($currentPage !== null 
			&& ($currentPage == 'listproduct.php' || $currentPage == 'editproduct.php'))	: ?>
		
		class="selected"
	
		<?php endif; ?>	
	>
	<a href="#">Thành viêm</a>
	</li>
</ul>
